projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6924320
)
Don't optimize away `eval` when its lexical context is different
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 20 Nov 2020 21:45:56 +0000
(16:45 -0500)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 20 Nov 2020 21:45:56 +0000
(16:45 -0500)
* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-eval):
Obey lexical-binding.
lisp/emacs-lisp/bytecomp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/bytecomp.el
b/lisp/emacs-lisp/bytecomp.el
index cbda16d051b85aaa290bdac5b9445b89badf7b21..e6f6a12b53d69ee4ba8babba33b8dd4da796dd76 100644
(file)
--- a/
lisp/emacs-lisp/bytecomp.el
+++ b/
lisp/emacs-lisp/bytecomp.el
@@
-2570,7
+2570,8
@@
list that represents a doc string reference.
;; and similar macros cleaner.
(put 'eval 'byte-hunk-handler 'byte-compile-file-form-eval)
(defun byte-compile-file-form-eval (form)
- (if (eq (car-safe (nth 1 form)) 'quote)
+ (if (and (eq (car-safe (nth 1 form)) 'quote)
+ (equal (nth 2 form) lexical-binding))
(nth 1 (nth 1 form))
(byte-compile-keep-pending form)))